<template>
	<div>
		{{$route.query.name}}***{{$route.query.age}}+++++++++++++直接$route.query拿到<br />
		{{name}}***{{age}}+++++++++++++++++++++++++++在路由配置成回调函数
	</div>
</template>
<script>
	export default {
		props: ["name", "age"],
		created() {
			console.log(this.$route)
		}
	}
</script>
<style scoped="scoped">

</style>
